<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./axios.min.js"></script>
    <script src="./jquery-3.5.0.min.js"></script>
    <script>
        var baseUrl='http://123.57.30.43:7788';
        var url='/user/login';
        var data={
            username:'admin1',
            password:'123321'
        };
        //jquery发送请求
        /* $.ajax({
            url:baseUrl+url,
            type:'post',
            data:JSON.stringify(data),
            contentType:"application/json; charset=utf-8",
            success:function(data){
                console.log(data)
            }
        }) */
        //axios发送请求
        // axios({
        //     url,
        //     baseUrl,
        //     method:'POST',
        //     data
        // }).then(response=>{
        //     console.log(response)
        // })
        var token="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJOUT09Iiwic3ViIjoiYWRtaW4xIiwiaXNzIjoiMDk4ZjZiY2Q0NjIxZDM3M2NhZGU0ZTgzMjYyN2I0ZjYiLCJpYXQiOjE2MDIxNTcwMTcsImF1ZCI6InJlc3RhcGl1c2VyIiwiZXhwIjoxNjAyMzI5ODE3LCJuYmYiOjE2MDIxNTcwMTd9.wEUwX0ZuC_MIcaLYna96fxoQ8lRHCQao7MeAwv88frE"
        axios.post(baseUrl+url,data).then(response=>{
            // console.log(response)
            // console.log(response.data.data.token)
        })
        axios.get(baseUrl+"/baseUser/pageQuery",{
            params:{
                page:1,
                pageSize:10
            },
            headers:{
                "Authorization":token
            }
        }).then(response=>{
            console.log(response)
        })
    </script>
</head>
<body>
    
</body>
</html>